<?php

require_once('../../includes/classes/core.php');
header('Content-Type: text/html; charset=utf-8');

$q = $_REQUEST['q'];

$rResult = mysql_query("SELECT 	`comment`.`comment`
					    FROM 	`comment`
					    WHERE 	`comment`.actived=1 AND `comment`.`comment` LIKE '%$q%'");

$arr = '';

while ($aRow = mysql_fetch_array( $rResult )){
	
	$arr .= $aRow[0].'string_end';
	
}

echo $arr;

?>